﻿@model GeodeticDistance.Models.CityLocation

@{
    ViewBag.Title = "ChooseCities";
}

<h2>Please Choose 2 Locations</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Location 1</legend>

        <div class="editor-field">
           Country @Html.DropDownList("Country")
        </div>

        <div class="editor-field">
           City @Html.DropDownList("City")
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
